<%-- 
    Document   : login
    Created on : 28 nov. 2011, 12:49:28
    Author     : laurent
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <fmt:setBundle basename="packageLanguage.lang" scope="session"/>    
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="css/tempstyle.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="js/valid.js" ></script> 
        <title><fmt:message key = "textWindowLogin"/></title>
    </head>
    
    <body>
        <div id="wrapper">
            <div id="logo">
              <c:set var="pagename" scope="request" value="login.jsp"/>  
              <jsp:include page="header.jsp"/>  
            </div>
            <hr />
            <!-- end #logo -->
            <div id="header">
		<div id="menu">
			<ul>
				<li><a href="index.jsp" class="first"><fmt:message key = "textFooterHome"/></a></li>
            			<li><a href="CatalogController"><fmt:message key = "textFooterArticles"/></a></li>
				<li><a href="about.jsp"><fmt:message key = "textFooterAbout"/></a></li>
				<li><a href="contact.jsp"><fmt:message key = "textFooterContact"/></a></li>
			</ul>
		</div>
		<!-- end #menu -->
            </div>
        
            <div id="page">
                <div id="page-bgtop">
                    <jsp:include page="langpanel.jsp"></jsp:include>

                    <div id="content">
                        <div class="post">
                             <h2 class="title"><fmt:message key = "textTitleLogin"/></h2>
                             <div class="entry">
                                  <form method="post" action="LoginController" name="loginForm" onsubmit="return validDataLogin('${sessionScope.lng}')">
                                     
                                    <fieldset style="width:250" >
                                        <legend><fmt:message key = "textLoginInfo"/></legend>
                                        <p>&nbsp;<br/>
                                            <label><fmt:message key = "textUserID"/>&nbsp;:</label><input type="text" name="userID" value="${param.userID}"/>
                                        </p>
                                        <p>
                                            <label><fmt:message key = "textPassword"/>&nbsp;:</label><input type="password" name="password"/>
                                        </p>    
                    
                                    </fieldset>
                                    <br/>
                                    <br/>        
                                    <div align="center">
                                        <input type="submit" textalign = "center" value="<fmt:message key = "textLoginButton"/>" />
                                        
                                    </div>
                                    <br/>
                                    <br/>
                                    <div align="center">
                                        <c:if test = "${loginError[0]}">
                                            <fmt:message key = "textErrorUID"/><br/>
                                        </c:if>
                                        <c:if test = "${loginError[1]}">
                                            <fmt:message key = "textErrorPWD"/><br/>
                                        </c:if>
                                    </div>
                                  </form>
                             </div>
                        </div>
                    </div>
                             
                </div>              
            </div>
                             
            <jsp:include page="footer.jsp"></jsp:include> 
            
        </div>
    </body>
</html>